<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-info" href="#"><i class="icon-key"></i> 权限设置</a>
		<a class="btn btn-success" href="#"><i class="icon-edit"></i> 编辑</a>
		<a class="btn btn-danger" href="#"><i class="icon-remove"></i> 删除</a>
	</div>
</div>
<table class="table table-bordered">
	<thead>
		<tr><th>名称</th>
			<th>创建时间</th>
			<th>是否默认</th>
			<th style="width:90px;">操作</th></tr></thead>
	<tbody>
	<#list pageBean.resultList as organType>
	<tr><td>${organType.name}</td>
		<td>${organType.ct?string("yyyy-MM-dd HH:mm")}</td>
		<td<#if organType.isDefault> style="color: red; font-weight: bold;"</#if>>
			<@mt.YesOrNo value=((organType.isDefault)!"") r=false />
		</td>
		<td><div class="btn-group">
			<a class="btn btn-xs btn-info" href="javascript:;" onclick="javascript:organType_editHandle('${organType.code}');" title="编辑机构类型可做的操作">
				<i class="icon-key"></i></a>
			<a class="btn btn-xs btn-success" href="javascript:;" onclick="javascript:sys_load_handle('organType-edit_${organType.code}');" title="编辑">
				<i class="icon-edit"></i></a>
			<a class="btn btn-xs btn-danger" href="javascript:;" onclick="javascript:organType_deleteOrganType('${organType.code}', '${organType.name}');" title="删除">
				<i class="icon-remove"></i></a></div></td>
	</tr>
	</#list>
	</tbody>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'organType_queryOrganType'/>